FROM golang:1.18.2
MAINTAINER liluo
ENV GOPROXY=https://mirrors.cloud.tencent.com/go/
COPY main.go /opt
COPY config /opt
RUN cd /opt;go mod init clouteam;go mod tidy
RUN cd /opt;go build main.go
CMD /opt/main